package cn.sc.summer.daoapi.dao;

import cn.sc.summer.mybatis.annotation.dynamicdatasource.MapperSource;
import cn.sc.summer.mybatis.base.SuperMapper;
import cn.sc.summer.mybatis.enums.DataSourceEnum;
import cn.sc.summer.token.po.SysUserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 接口：shop-mapper
 *
 * @author a-xin
 * @date 2023/8/29 20:18
 */
@Mapper
public interface SysUserInfoMapper extends SuperMapper<SysUserInfo> {
    //@InterceptorIgnore(tenantLine = "1") 忽略拦截器注释

    @MapperSource(value = DataSourceEnum.SLAVE)
    List<String> getAllUserId();

    @MapperSource(value = DataSourceEnum.MASTER)
    List<SysUserInfo> getAllUser();

}
